﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;

namespace Kimd.Communication
{
    public class SendPackage
    {
        public string Id { get; set; }
        public bool SendFlag { get; set; }
        public Predicate<string> PairRule { get; set; }
        public string Message { get; set; }
        public string RecvStr { get; set; }
        public Func<string, string> SendRule { get; set; }
        public SendPackage()
        {
            Id = Guid.NewGuid().ToString();
            SendFlag = false;
            RecvStr = string.Empty;
        }
    }
}
